{include file="public/nheader" /}
<div class="layui-fluid">
    <div class="layui-card">
        <!-- // 创建数据实例 -->
        <table id="lay-tableList" lay-filter="lay-tableList"></table>
    </div>
</div>
<!-- // 列表工具栏 -->
<script type="text/html" id="tableBar">
    <a class="layui-table-text" lay-open data-title="编辑" data-area="60%,80%" data-url="/system/config_edit?name={{d.name}}" >编辑</a>
    <div class="layui-divider layui-divider-vertical"></div>
</script>
{include file="public/nfooter"}
<script>
    layui.use(['table'], function () {
        var table = layui.table;
        /*
         * 初始化表格
        */
        var isTable = table.render({
            elem: "#lay-tableList"
            , url: "{:url()}"
            , page: true
            , size: 'lg'
            , even: true
            , cols: [[
                { field: 'remark', align: 'center', width: 200, title: '参数名称' },
                {
                    field: 'value', align: 'center', width: 200, templet: function (d) {
                        return d.value;
                    }, title: '类型'
                },
                { align: 'center', toolbar: '#tableBar', width: 250, title: '操作' },
            ]]
        })
    })
</script>
</body>